package j01set;

import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.Set;

public class J5linkedhash {
    public static void main(String[] args) {
//        Set<String> s1 = new HashSet<>();
        Set<String> s1 = new LinkedHashSet<>();
        s1.add("hello");
        s1.add("word");
        s1.add("hualan");
        System.out.println("s1 = " + s1);
    }
}
